package org.x.usermod.dto;

import lombok.Data;

import java.util.List;

@Data
public class UserAclDTO {
    private Long userId;
    private List<RolesInfo> roles;
    private List<AclInfo> permissions;
    private List<MenuTree> menuTree;
    @Data
    public static class RolesInfo {
        private Long roleId;
        private String name;
        private String code;
    }
    @Data
    public static class AclInfo {
        private Long aclId;
        private String name;
        private String code;
    }
    @Data
    public static class MenuTree {
        private Long menuId;
        private String name;
        private String path;
        private List<MenuTree> children;
    }
}

